package com.android.goal;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

public class GoalActivity extends TabActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Resources res= this.getResources();
        TabHost tabHost = this.getTabHost();
        TabHost.TabSpec spec;
        Intent intent;
        
        intent = new Intent().setClass(this, AllLeaguesActivity.class);
        spec = tabHost.newTabSpec("allLeagues").setIndicator("All Leagues",
        		res.getDrawable(R.drawable.all_leagues)).setContent(intent);
        tabHost.addTab(spec);
        
        intent = new Intent().setClass(this, LiveScoreActivity.class);
        spec = tabHost.newTabSpec("livescore").setIndicator("Live Score",
        		res.getDrawable(R.drawable.live_score)).setContent(intent);
        tabHost.addTab(spec);
        
        tabHost.setCurrentTab(1);
    }
}